package com.test.mchelepesa.util_rice.analytics_rice.util_rice

import android.app.Application
import com.test.mchelepesa.util_rice.StringUtil_rice
import com.test.mchelepesa.util_rice.helper_rice.UserInfoHelper_rice
import com.test.mchelepesa.util_rice.http_rice.HttpManager_rice

object SycDeviceUtil_rice {

    /**
     * 初始化设备信息模块
     *
     * @param context Application
     */
    fun init(context: Application) {}

    /**
     * 保存设备 s2s信息
     */
    fun saveS2SInfo() {
        try {
            if (UserInfoHelper_rice.getInstance().didLogin_rice()) {
                HttpManager_rice.getInstance().queryDeviceInfoTypes()
            }
        } catch (e: Exception) {
            StringUtil_rice.printException(e)
        }
    }
}